<!DOCTYPE HTML>
<!--[if lt IE 7]>      <html class="lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html>
	<!--<![endif]-->

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no,minimal-ui">
		<title>问题详情-因酷在线教育软件-中国在线教育平台第一品牌</title>
		<meta name="author" content="INXEDU(http://www.inxedu.com)" />
		<meta name="keywords" content="INXEDU,在线教育,网校搭建,网校,网络教育,远程教育,云网校,在线学习,在线考试" />
		<meta name="description" content="inxedu是一家专注“在线教育平台”的互联网公司，在国内属顶级在线教育解决方案提供商中的领跑者。为大、中型客户提供领先的在线教育平台方案服务。" />
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
		<meta content="telephone=no" name="format-detection" />
		<link rel="shortcut icon" href="/inxedu/favicon.ico" type="image/x-icon">
		<link rel="stylesheet" type="text/css" href="../static/inxweb/css/reset.css">
		<link rel="stylesheet" type="text/css" href="../static/inxweb/css/theme.css">
		<link rel="stylesheet" type="text/css" href="../static/inxweb/css/global.css">
		<link rel="stylesheet" type="text/css" href="../static/inxweb/css/web.css">
		<link rel="stylesheet" type="text/css" href="../static/exam/new_style/style.css">
		<link href="../static/inxweb/css/mw_320_768.css" rel="stylesheet" type="text/css" media="screen and (min-width: 320px) and (max-width: 768px)">
		<link href="../static/exam/new_style/mw_320_768.css" rel="stylesheet" type="text/css" media="screen and (min-width: 320px) and (max-width: 768px)">
		<link rel="stylesheet" type="text/css" href="../static/exam/css/examtheme.css">
		<link rel="stylesheet" href="../static/exam/css/exam-style.css?v=1512129123700">
		<!--<link href="../static/exam/css/mw_320_768.css" rel="stylesheet" type="text/css" media="screen and (min-width: 320px) and (max-width: 768px)">-->
		<!--[if lt IE 9]><script src="/inxedu/static/common/html5.js"></script><![endif]-->
		<script type="text/javascript" src="../static/common/jquery-1.7.2.min.js"></script>
		<!--<script type="text/javascript" src="../static/common/webutils.js"></script>-->
		<script type="text/javascript" src="../js/header.js"></script>
		<script type="text/javascript" src="../assets/js/common.js"></script>
		<script src="../js/head.js"></script>
		<script src="../static/inxweb/questions/questions.js"></script>
		
	</head>

	<body class="W-body">
		<script src="../js/vue.min.js"></script>
		<script src="../js/axios.min.js"></script>
		<script src="../js/moment.js"></script>
		<div class="in-wrap" id="pps">
			<div class="changeTheme" style="display: none;">
				<div class="ei-item-box">
					<div class="container pr">
						<a class="fr" id="Replacement" href="javascript:void(0);">
							<img alt="" src="../static/inxweb/img/HF-BG.png">
						</a>
					</div>
				</div>
				<div class="ei-i-dialog pa" style="height: 120px; top: -120px; opacity: 0; z-index: -1;">
					<div style="height: 100%;" class="ei-i-dialog-box">
						<div class="ei-i-dialog-box-tit">
							<section class="container pr">
								<a title="收起" class="ei-i-close close_a pa" id="close_a" href="javascript: void(0)">
									<em class="vam up-hf"> <img alt="" src="../static/inxweb/img/up-hf.png">
								</em>
									<tt class="f-fM fsize14 vam">收起</tt>
								</a>
								<span> 主题切换 </span>
							</section>
						</div>
						<div class="ei-i-dialog-box-boy">
							<div class="container">
								<article class="dialog-box-boy-in">
									<ul class="clearfix">
										<li>
											<div id="themeColororange" class="box-boy-in-i  ">
												<a class="pr" href="javascript:changeThemeColor('orange')">
													<img class="pic" alt="" src="../static/inxweb/img/pic/one-master.jpg">
													<span class="pa name"> 网络课堂--模板一 </span> <em id="triangle-bottomright" class="xz"> &nbsp; </em>
													<div class="loging" style="display:none;">
														<img src="../static/inxweb/img/loding.gif" alt="">
													</div>
												</a>
											</div>
										</li>
										<li>
											<div id="themeColorgreen" class="box-boy-in-i">
												<a class="pr" href="javascript:changeThemeColor('green')">
													<img class="pic" alt="" src="../static/inxweb/img/pic/two-green.jpg">
													<span class="pa name"> 网络课堂--模板二 </span> <em id="triangle-bottomright" class="xz"> &nbsp; </em>
													<div class="loging" style="display:none;">
														<img src="../static/inxweb/img/loding.gif" alt="">
													</div>
												</a>
											</div>
										</li>
										<li>
											<div id="themeColorblue" class="box-boy-in-i">
												<a class="pr" href="javascript:changeThemeColor('blue')">
													<img class="pic" alt="" src="../static/inxweb/img/pic/three-blue.jpg">
													<span class="pa name"> 网络课堂--模板三 </span> <em id="triangle-bottomright" class="xz"> &nbsp; </em>
													<div class="loging" style="display:none;">
														<img src="../static/inxweb/img/loding.gif" alt="">
													</div>
												</a>
											</div>
										</li>
									</ul>
								</article>
							</div>
						</div>
					</div>
				</div>
			</div>
			<!-- 公共头引入 -->
			<!-- /global header begin-->
			<header id="header">
				<section class="container">
					<h1 id="logo">
			<a href="/inxedu/" title="因酷在线教育软件">
				<img src="../images/upload/websiteLogo/20150820/1440035056371.png" width="100%" alt="因酷在线教育软件">
			</a>
		</h1>
					<div class="h-r-nsl">
						<ul class="nav">
							<li>
								<a href="../view/menu/index.html" title="首页">首页</a>
							</li>
							<li>
								<a href="../view/menu/courses-list.html" title="课程">课程</a>
							</li>
							<li>
								<a href="../teachar/teacher-list.html" title="名师">名师</a>
							</li>
							<li>
								<a href="../view/menu/articlelist.html" title="文章">文章</a>
							</li>
							<li>
								<a href="../view/menu/question-list.html" title="问答">问答</a>
							</li>
						</ul>
						<ul class="h-r-login">
							<li id="no-login">
								<a href="javascript:lrFun(1)" title="登录">
									<em class="icon18 login-icon">&nbsp;</em><span class="vam ml5">登录</span>
								</a>
								|
								<a href="javascript:lrFun(2)" title="注册">
									<span class="vam ml5">注册</span>
								</a>
							</li>
							<li class="mr10 undis" id="is-login-one">
								<a href="http://localhost:8081/uc/letter" title="消息" id="headerMsgCountId">
									<em class="icon18 news-icon">&nbsp;</em>
								</a><q class="red-point" style="display: none">&nbsp;</q></li>
							<li class="h-r-user undis" id="is-login-two">
								<a href="../view/menu/loginInfo.html" title="">
									<img src="../static/inxweb/img/avatar-boy.gif" id="pic_img" width="30" height="30" class="vam picImg" alt="">
									<span class="vam disIb" id="userName"></span>
								</a>
								<a href="javascript:void(0)" title="退出" onclick="exit();" class="ml5">退出</a>
							</li>
							<!-- /未登录显示第1 li；登录后显示第2，3 li -->
						</ul>
						<aside class="h-r-search">
							<form action="../../front/showcoulist" method="post">
								<label class="h-r-s-box"><input type="text" placeholder="输入你想学的课程" name="queryCourse.courseName" value="">
						<button type="submit" class="s-btn">
							<em class="icon18">&nbsp;</em>
						</button></label>
							</form>
						</aside>
					</div>
					<aside class="mw-nav-btn">
						<div class="mw-nav-icon"></div>
					</aside>
					<div class="clear"></div>
				</section>
			</header>
			<!-- /global header end-->
			<div class="h-mobile-mask"></div>
			<div class="head-mobile">
				<div class="head-mobile-box">
					<section class="clearfix">
						<div class="u-face-pic">
							<img src="/inxedu/static/inxweb/img/avatar-boy.gif" alt="" class="userImgPhoto">
							<a href="/inxedu/uc/initUpdateUser/1" title="" class="c-fff">修改头像</a>
						</div>
						<h4 class="hLh30 txtOf">
				<span class="fsize16 c-ccc userNameClass">
					<span class="vam ml5" style="cursor:pointer;" onclick="lrFun(1)">登录</span>
				</span>
			</h4>
						<div class="hLh30">
							<a href="/inxedu/uc/initUpdateUser/0" title="个人资料设置" class="c-999">个人资料设置</a>
						</div>
						<div class="hLh20 undis" id="mobileExitDiv">
							<a href="javascript:void(0)" title="退出" onclick="exit();" class="c-999">退出</a>
						</div>
					</section>
					<nav class="mw-nav">
						<ul class="clearfix">
							<li>
								<a href="/inxedu/" title="首页">首页</a>
							</li>
							<li>
								<a href="/inxedu/front/showcoulist" title="课程">课程</a>
							</li>
							<li>
								<a href="/inxedu/front/teacherlist" title="名师">名师</a>
							</li>
							<li>
								<a href="/inxedu/front/articlelist" title="文章">文章</a>
							</li>
							<li>
								<a href="/inxedu/front/examindex" title="考试">考试</a>
							</li>
							<li>
								<a href="/inxedu/questions/list" title="问答">问答</a>
							</li>
						</ul>
					</nav>
					<section class="u-m-dd">
						<ul>
							<li>
								<span>Wo的学习</span>
								<ol>
									<li class="current">
										<a href="javascript:void(0)" onclick="mobileHrefCheckLogin('/inxedu/uc/index')" title="">免费课程</a>
									</li>
									<li>
										<a href="javascript:void(0)" onclick="mobileHrefCheckLogin('/inxedu/front/showcoulist')" title="">选课中心</a>
									</li>
									<li>
										<a href="javascript:void(0)" onclick="mobileHrefCheckLogin('/inxedu/uc/myFavorites')" title="">Wo的收藏</a>
									</li>
								</ol>
							</li>
						</ul>
						<ul>
							<li>
								<span>Wo的问答</span>
								<ol>
									<li>
										<a href="javascript:void(0)" onclick="mobileHrefCheckLogin('/inxedu/uc/myquestions/list')" title="">Wo的提问</a>
									</li>
									<li>
										<a href="javascript:void(0)" onclick="mobileHrefCheckLogin('/inxedu/uc/myrepquestions/list')" title="">Wo的回答</a>
									</li>
								</ol>
							</li>
						</ul>
						<ul>
							<li>
								<span>Wo的资料</span>
								<ol>
									<li>
										<a href="javascript:void(0)" onclick="mobileHrefCheckLogin('/inxedu/uc/initUpdateUser/0')" title="">基本资料</a>
									</li>
									<li>
										<a href="javascript:void(0)" onclick="mobileHrefCheckLogin('/inxedu/uc/initUpdateUser/1')" title="">个人头像</a>
									</li>
									<li>
										<a href="javascript:void(0)" onclick="mobileHrefCheckLogin('/inxedu/uc/initUpdateUser/2')" title="">密码设置</a>
									</li>
								</ol>
							</li>
						</ul>
						<ul>
							<li>
								<span>Wo的消息</span>
								<ol>
									<li>
										<a href="javascript:void(0)" onclick="mobileHrefCheckLogin('/inxedu/uc/letter')" title="">系统消息</a>
									</li>
								</ol>
							</li>
						</ul>
					</section>
				</div>
			</div>
			<script>
				$(function() {
					wmNavFun(); // 手机端导航方法
					goTopFun(); //返回顶部
				})
			</script>
			<!-- 公共头引入 -->
			<script>
				$(function() {
					var str = '<section style="color: #666;position:absolute;left:50%;bottom:20px;z-index:7;margin-left:-80px;">';
					str += '<span>Powered by</span>';
					str += '<a href="http://www.inxedu.com" target="_blank" title="因酷教育软件" style="margin-left: 2px;color: #666;">因酷教育软件</a>';
					str += '</section>';
					$("body").append(str);
				});
			</script>
			<div class="bg-fa of" id="app">
				<section class="container">
					<section class="i-question">
						<div class="fl col-7">
							<section class="mr30 pt10">
								<section class="path-wrap txtOf hLh30">
									<a href="/inxedu" title="" class="c-999 fsize14">首页</a>
									\
									<a href="/inxedu/questions/list" title="" class="c-999 fsize14">全部问答</a>
									\ <span class="c-333 fsize14">{{question.title}}</span>
								</section>
								<!-- /问题详情 开始 -->
								<div>
									<section class="q-infor-box">
										<div class="pr">
											<aside class="q-head-pic">
												<img :src="question.eduUser.picImg" v-if="question.eduUser!=null" alt="">
												<p class="hLh30 txtOf"></p>
											</aside>
											<section class="q-txt-box">
												<aside class="q-share">
													<span class="fl" title="分享到："><em class="icon14 q-share-icon mt5">&nbsp;</em></span>
													<div class="fl ml10" style="width: 95px;">
														<div class="bdsharebuttonbox bdshare-button-style1-16" id="bdshare" data-bd-bind="1598260072122" style="right: -160px;">
															<a title="分享到新浪微博" href="#" class="bds_tsina" data-cmd="tsina"></a>
															<a title="分享到微信" href="#" class="bds_weixin" data-cmd="weixin"></a>
															<a title="分享到QQ空间" href="#" class="bds_qzone" data-cmd="qzone"></a>
															<a title="分享到腾讯微博" href="#" class="bds_tqq" data-cmd="tqq"></a>
														</div>

													</div>
													<div class="clear"></div>
												</aside>
												<h3 class="hLh30 txtOf">
											<em class="icon16 q-tw">&nbsp;</em> <span class="c-blue fsize14" v-if="question.eduUser!=null"> {{question.eduUser.showName}}</span> <span class="c-999 fsize14" v-if="question.type==1"> 课程提问</span>
											<span class="c-999 fsize14" v-if="question.type==2"> 学习分享</span>
										</h3>
											</section>
											<section class="ml50 pl10">
												<div class="mt20">
													<h3 class="hLh30 txtOf">
												<span class="fsize18 c-333 vam">{{question.title}}</span>
											</h3>
												</div>
												<div class="i-q-txt mt15">

													<span class="c-999 f-fA">{{question.content}}</span>

												</div>
												<div class="mt20 pr10">
													<section class="fr">
														<span> <a href="#i-art-comment" title="评论" class="noter-dy vam">
														<em class="icon18">&nbsp;</em>(<span id="questionsReplyCount">{{question.replyCount}}</span>)
														</a> <tt class="noter-zan vam ml10 f-fM" title="赞一下" @click="addPraise(question.id,question.praiseCount,1)">
														<em class="icon18 " >&nbsp;</em>(<span >{{question.praiseCount}}</span>)
													</tt>
														</span>
													</section>
													<span class="c-ccc fl vam">{{question.addTime | dateFrm}}</span>
													<section class="fl ml20 pt10">
														<div class="taglist clearfix">
															<span v-for="t in question.tags">
														<a title="t.questionsTagName" data-id="11" onclick="" class="list-tag" href="javascript:;">{{t.questionsTagName}}</a>
													</span>
														</div>
													</section>
													<div class="clear"></div>
												</div>
											</section>
											<section class="n-reply-wrap mt10" v-if="question.status==0">
												<fieldset>
													<textarea name="" placeholder="输入您要评论的文字" v-model="content" id="commentContent"></textarea>
												</fieldset>
													<p class="of mt5 tar pl10 pr10">
													<span class="fl "><tt class="c-red commentContentmeg" ></tt></span>
													<a href="#" @click="addComment(question,1)" title="回复" class="lh-reply-btn">回复</a>
												</p>
											</section>
										</div>
										<span id="questionsCommentSpan"><!-- /最佳答案 开始-->
										<div class="good-anwer-box" v-if="question.status==1">
										<h4 class="g-a-title">
											<span class="bg-green vam"><em class="icon24 mr5">&nbsp;</em>最佳答案</span>
										</h4>
										<section class="good-answer mt10">
											<section class="question-list lh-bj-list pr">
												<ul class="pr10" v-for="c in comments" v-if="c.isBest==1">
													<li>
														<aside class="noter-pic">
															<img :src="c.eduUser.picImg" alt="" width="50" height="50">
														</aside>
														<div class="of hLh20">
															<span class="fl"> <font class="fsize12 c-blue"> {{c.eduUser.showName}}</font> <font class="fsize12 c-999 ml5">回复：</font></span>
														</div>
														<div class="noter-txt mt5">
															<p>{{c.content}}</p>
														</div>
														<div class="of mt5">
															<span class="fr"><font class="fsize12 c-999 ml5">{{c.addtime|dateFrm}}</font></span> <span class="fl"> <a href="javascript: void(0)" title="回答" class="noter-dy vam" @click="getBestSonComments">
															<em class="icon18">&nbsp;</em>全部评论(<span>{{c.replyCount}}</span>)
															</a> <tt class="noter-zan vam ml10 f-fM" title="赞一下" @click="addPraise(c.id,c.praiseCount,2)">
															<em class="icon18">&nbsp;</em>点赞(<span>{{c.praiseCount}}</span>)
															</tt>
															</span>
														</div>
														<div v-show="flag" >
															<section class="n-reply-wrap mt10">
																<fieldset>
																	<textarea name="" placeholder="输入您要评论的文字" v-model="content" id="commentContent"></textarea>
																</fieldset>
																<p class="of mt5 tar pl10 pr10">
																	<span class="fl "><tt class="c-red commentContentmeg" ></tt></span>
																	<a href="#" @click="addComment(c,2)" title="回复" class="lh-reply-btn">回复</a>
																</p>
															</section>
															<div class="mt10 pl10 pr10">
																<dl v-for="s in comments" v-if="s.commentId==c.id" class="n-reply-list" style="margin-left: 0px; margin-right: 130px; width: 655px;">
																	<!-- 最佳答案的评论在这里 -->
																	<dd >
																		<aside class="noter-pic" >
																			<img :src="s.eduUser.picImg" style="margin-left: -70px;"/>
																		</aside>
																		<div class="of">
																		<span class="fl">
																		<font class="fsize12 c-blue">
																		{{s.eduUser.showName}}</font><font class="fsize12 c-999 ml5">评论：</font></span>
																		</div>
																		<div class="noter-txt mt5">
																		<p>{{s.content}}</p>
																		</div>
																			<div class="of mt5">
																		<span class="fr"><font class="fsize12 c-999 ml5">{{s.addtime|dateFrm}}</font></span>
																		<span class="fl">
																			<tt class="noter-zan vam" title="赞一下" @click="addPraise(s.id,s.praiseCount,2)"><em class="icon18">&nbsp;</em>(<span>{{s.praiseCount}}</span>)</tt>
																		</span>
																		</div>
																	</dd>
																</dl>
															</div>
														</div>
														<!-- /回复盒子 -->
													</li>
												</ul>
											</section>
										</section>
								</div>
								<!-- /最佳答案 结束-->
								<!-- /回答列表 开始 -->
								<div class="q-i-noter-box">
									<section class="q-i-reply">
										<h6 class="c-c-content c-infor-title">
											<span>问答列表</span>
										</h6>
									</section>
									<div class="q-n-r-box">
										<section class="question-list lh-bj-list pr">
											<ul class="pr10">
												<li v-for="(arr , index) in comments" v-if="arr.isBest==0&&arr.commentId==0" @mouseover="moveOver(index)" @mouseout="moveOut(index)">
													<aside class="noter-pic">
														<img :src="arr.eduUser.picImg" alt="" width="50" height="50">
													</aside>
													<div class="of hLh20">
														<span class="fl"> <font class="fsize12 c-blue"> {{arr.eduUser.showName}}</font> <font class="fsize12 c-999 ml5">回复：</font></span>
														<input type="button" style="margin-left: 450px;background: #85C589;" value="采纳此评论" :id="index" v-show="buttons[index]&&question.status==0" @click="makeBestComment(arr)"/>
													</div>
													<div class="noter-txt mt5">
														<p>{{arr.content}}</p>
													</div>
													<div class="of mt5">
														<span class="fr"><font class="fsize12 c-999 ml5">{{arr.addtime | dateFrm}}</font></span> <span class="fl"> <a href="javascript: void(0)" title="回答" class="noter-dy vam" @click="getSonComment(index)">
															<em class="icon18">&nbsp;</em>(<span>{{arr.replyCount}}</span>)
															</a> <tt class="noter-zan vam ml10" title="赞一下" @click="addPraise(arr.id,arr.praiseCount,2)">
															<em class="icon18">&nbsp;</em>(<span>{{arr.praiseCount}}</span>)
															</tt>
														</span>
													</div>
														
													<div v-show="flags[index]" >
														<section class="n-reply-wrap mt10">
																<fieldset>
																	<textarea name="" placeholder="输入您要评论的文字" v-model="content" id="commentContent"></textarea>
																</fieldset>
																<p class="of mt5 tar pl10 pr10">
																	<span class="fl "><tt class="c-red commentContentmeg" ></tt></span>
																	<a href="#" @click="addComment(arr,2)" title="回复" class="lh-reply-btn">回复</a>
																</p>
														</section>
														<div class="mt10 pl10 pr10">
															<dl  v-for="com in comments" v-if="com.commentId==arr.id" class="n-reply-list" style="margin-left: 0px; margin-right: 130px; width: 655px;">
																<!-- 当前问答回复的所有评论在这里 -->
																
																<dd>
																	<aside class="n-reply-pic">
																		<img :src="com.eduUser.picImg" alt="" style="margin-left: -10px;">
																	</aside>
																	<div class="of">
																		<span class="fl">
																			
																			<font class="fsize12 c-blue">
																				{{com.eduUser.showName}}</font><font class="fsize12 c-999 ml5">评论：</font></span>
																	</div>
																	<div class="noter-txt mt5">
																		<p>{{com.content}}</p>
																	</div>
																	<div class="of mt5">
																		<span class="fr"><font class="fsize12 c-999 ml5">{{com.addTime|dateFrm}}</font></span>
																		<span class="fl">
																			<tt class="noter-zan vam" title="赞一下" @click="addPraise(com.id,com.praiseCount,2)"><em class="icon18">&nbsp;</em>(<span>{{com.praiseCount}}</span>)</tt>
																		</span>
																	</div>
																</dd>
															</dl>
														</div>
													</div>
													<!-- /回复盒子 -->
												</li>
											</ul>
										</section>
									</div>
									<!-- 公共分页 开始 -->

									<div class="paging">
										<a href="javascript:goPageAjax(1);" title="">首</a>
										<a id="backpage" class="undisable" href="javascript:void(0)" title="">&lt;</a>
										<a href="javascript:void(0)" title="" class="current undisable">1</a>
										<a id="nextpage" href="javascript:void(0)" title="" class="undisable">&gt;</a>
										<a href="javascript:goPageAjax(1);" title="">末</a>
										<div class="clear"></div>
									</div>

									<!-- 公共分页 结束 -->
								</div>
								<!-- /回答列表 结束 -->
								</span>
								</section>
						</div>
						<!-- /问题列表 结束 -->
						</section>
			</div>
			<aside class="fl col-3">
				<div class="mt30 pl10">
					<section class="pt10">
						<a href="javascript:void(0)" onclick="toAddQuestions()" title="我要提问" class="comm-btn c-btn-5">我要提问</a>
					</section>
					<section class="pt20">
						<div class="taglist clearfix">
							<form action="/inxedu/questions/list" id="searchForm" method="post">
								<input type="hidden" id="pageCurrentPage" name="page.currentPage" value="1">
								<input type="hidden" name="questions.orderFalg" value="addTime">
								<input type="hidden" name="questions.type" value="1">
								<input type="hidden" name="questions.status" value="1">
								<input type="hidden" name="questions.questionsTagId" value="">
							</form>
							<a title="JAVA" data-id="1" class="list-tag" href="javascript:;" onclick="submitForm('1','questionsTagId')">JAVA</a>
							<a title="Maya" data-id="2" class="list-tag" href="javascript:;" onclick="submitForm('2','questionsTagId')">Maya</a>
							<a title="MongoDB" data-id="3" class="list-tag" href="javascript:;" onclick="submitForm('3','questionsTagId')">MongoDB</a>
							<a title="Premiere" data-id="5" class="list-tag" href="javascript:;" onclick="submitForm('5','questionsTagId')">Premiere</a>
							<a title="Photoshop" data-id="6" class="list-tag" href="javascript:;" onclick="submitForm('6','questionsTagId')">Photoshop</a>
							<a title="Mysql" data-id="7" class="list-tag" href="javascript:;" onclick="submitForm('7','questionsTagId')">Mysql</a>
							<a title="Android" data-id="8" class="list-tag" href="javascript:;" onclick="submitForm('8','questionsTagId')">Android</a>
							<a title="Unity3D" data-id="9" class="list-tag" href="javascript:;" onclick="submitForm('9','questionsTagId')">Unity3D</a>
							<a title="JavaScript" data-id="10" class="list-tag" href="javascript:;" onclick="submitForm('10','questionsTagId')">JavaScript</a>
							<a title="WebApp" data-id="11" class="list-tag" href="javascript:;" onclick="submitForm('11','questionsTagId')">WebApp</a>
							<a title="王勇" data-id="18" class="list-tag" href="javascript:;" onclick="submitForm('18','questionsTagId')">王勇</a>
							<a title="新建问答标签" data-id="21" class="list-tag" href="javascript:;" onclick="submitForm('21','questionsTagId')">新建问答标签</a>
							<a title="新建问答标签" data-id="22" class="list-tag" href="javascript:;" onclick="submitForm('22','questionsTagId')">新建问答标签</a>
						</div>
					</section>
					<!-- /标签云 -->
					<section class="mt30">
						<section class="c-infor-tabTitle c-tab-title">
							<a href="javascript: void(0)" title="热门问答推荐">热门问答推荐</a>
						</section>
						<div class="q-r-rank-list">
							<ul id="hotQuestions">
								<li>
									<aside class="q-r-r-num">
										<div class="replyNum"> <span class="r-b-num">4</span>
											<p class="hLh20"> <span class="c-999 f-fA">回答数</span> </p>
										</div>
									</aside>
									<h4 class="hLh30 txtOf">		<em class="icon16 q-tw">&nbsp;</em>		<a href="/questions/info/6" title="" class="fsize14 c-333 ml5">我是如何自学Android，资料分享（2015 版）</a>	</h4></li>
								<li>
									<aside class="q-r-r-num">
										<div class="replyNum"> <span class="r-b-num">3</span>
											<p class="hLh20"> <span class="c-999 f-fA">回答数</span> </p>
										</div>
									</aside>
									<h4 class="hLh30 txtOf">		<em class="icon16 q-tw">&nbsp;</em>		<a href="/questions/info/7" title="" class="fsize14 c-333 ml5">JavaScript刷新页面方法大全</a>	</h4></li>
								<li>
									<aside class="q-r-r-num">
										<div class="replyNum"> <span class="r-b-num">2</span>
											<p class="hLh20"> <span class="c-999 f-fA">回答数</span> </p>
										</div>
									</aside>
									<h4 class="hLh30 txtOf">		<em class="icon16 q-tw">&nbsp;</em>		<a href="/questions/info/8" title="" class="fsize14 c-333 ml5">Web App开发教程,有没有分享下</a>	</h4></li>
								<li>
									<aside class="q-r-r-num">
										<div class="replyNum"> <span class="r-b-num">1</span>
											<p class="hLh20"> <span class="c-999 f-fA">回答数</span> </p>
										</div>
									</aside>
									<h4 class="hLh30 txtOf">		<em class="icon16 q-tw">&nbsp;</em>		<a href="/questions/info/9" title="" class="fsize14 c-333 ml5">Premiere视频教学视频,大神分享下好吗</a>	</h4></li>
								<li>
									<aside class="q-r-r-num">
										<div class="replyNum"> <span class="r-b-num">1</span>
											<p class="hLh20"> <span class="c-999 f-fA">回答数</span> </p>
										</div>
									</aside>
									<h4 class="hLh30 txtOf">		<em class="icon16 q-tw">&nbsp;</em>		<a href="/questions/info/5" title="" class="fsize14 c-333 ml5">我的MYSQL日志学习心得,给大家分享</a>	</h4></li>
								<li>
									<aside class="q-r-r-num">
										<div class="replyNum"> <span class="r-b-num">1</span>
											<p class="hLh20"> <span class="c-999 f-fA">回答数</span> </p>
										</div>
									</aside>
									<h4 class="hLh30 txtOf">		<em class="icon16 q-tw">&nbsp;</em>		<a href="/questions/info/11" title="" class="fsize14 c-333 ml5">老师JDK 怎么配置水电费时代发生地方时代发生地方？</a>	</h4></li>
								<li>
									<aside class="q-r-r-num">
										<div class="replyNum"> <span class="r-b-num">1</span>
											<p class="hLh20"> <span class="c-999 f-fA">回答数</span> </p>
										</div>
									</aside>
									<h4 class="hLh30 txtOf">		<em class="icon16 q-tw">&nbsp;</em>		<a href="/questions/info/2" title="" class="fsize14 c-333 ml5">谁知道支付宝即时到账接口中的有卡就能付没有了怎么回事</a>	</h4></li>
								<li>
									<aside class="q-r-r-num">
										<div class="replyNum"> <span class="r-b-num">1</span>
											<p class="hLh20"> <span class="c-999 f-fA">回答数</span> </p>
										</div>
									</aside>
									<h4 class="hLh30 txtOf">		<em class="icon16 q-tw">&nbsp;</em>		<a href="/questions/info/4" title="" class="fsize14 c-333 ml5">photoshop怎么抠图 ,能详细点吗</a>	</h4></li>
							</ul>
						</div>
					</section>
					<!-- /热门问答排行 -->
				</div>
			</aside>
			<div class="clear"></div>
			</section>
			</section>
			<!-- /提问题 结束 -->
		</div>
		<script>
			var app = new Vue({
				el: "#app",
				data: {
					question: [],
					comments: [],
					flag:false,
					flags: [],
					content: "",
					eduUser: "",
					praise: false,
					buttons:[]
				},
				created: function() {
					this.checkLogin();
					this.getQuestionDetail();
				},

				methods: {
					getQuestionDetail: function() {
						var that = this;
						axios.defaults.headers.common["token"] = localStorage.getItem("token");
						axios.get("http://localhost:9095/user/questions/showSingle", {
							params: {
								"id": localStorage.getItem("id")
							}
						}).then(function(response) {
							if(response.data.code == 200) {
								that.question = response.data.data.eduQuestion;
								that.comments = response.data.data.comments;
								that.comments.forEach(function(item,index){
									that.buttons.push(false)
									if(item.isBest!=1){
										that.flags.push(false)
									}else{
										that.flags.push("")
									}
									
								})
							} else {
								alert(response.data.message)
							}
							console.log(that.question)
						})
					},
					checkLogin: function() {
						var token = localStorage.getItem("token");
						var json = islogins(token);
						if(json != "null" && json != "" && json != null) {
							if(json.code == 200) {
								haslogin(json, 0);
								this.eduUser = json.data;
								return true;
							} else {
								return false;
							}
						} else {
							return false;
						}
					},
					//最佳回答子评论
					getBestSonComments: function() {
						this.flag = !this.flag;
					},
					//显示评论的子回复
					getSonComment:function(i){
						this.$set(this.flags, i, !this.flags[i])
					},
					//添加评论
					addComment: function(obj, type) {
						var that = this;
						var result = this.checkLogin();
						if(result) {
							var eduQuestionsComment = "";

							var commentId = 0;
							var questionId = 0;
							//父评论
							if(type == 1) {
								commentId = 0;
								questionId = obj.id;
							} else { //子评论
								commentId = obj.id;
								questionId = obj.questionId;
							}
							eduQuestionsComment = {
								"cusId": this.eduUser.userId,
								"questionId": questionId,
								"content": this.content,
								"isBest": 0,
								"replyCount": 0,
								"praiseCout": 0,
								"commentId": commentId
							}
							axios.defaults.headers.common["token"] = localStorage.getItem("token");
							axios({
								url: "http://localhost:9095/user/questions/save/comment",
								method: "post",
								headers: {
									'Content-Type': 'application/x-www-form-urlencoded'
								},
								params: eduQuestionsComment
							}).then(function(response) {
								if(response.data.code == 200) {
									that.content = "";
									that.getQuestionDetail();
								} else {
									alert(response.data.message)
								}
							})
						} else {
							lrFun();
							return;
						}
					},
					//点赞
					addPraise: function(id, count, type) {
						var that = this;
						var result = this.checkLogin(localStorage.getItem("token"));
						if(result) {
							if(this.praise) {
								dialog('提示信息',"不能重复点赞",1);
								return;
							} else {
								this.praise = true;
							}
							//问题点赞
							if(type == 1) {
								this.question.praiseCount++;
								var newQuestion = {
									"id": id,
									"praiseCount": this.question.praiseCount
								}
								axios.defaults.headers.common["token"] = localStorage.getItem("token");
								axios({
									url: "http://localhost:9095/user/questions/addQuestionPraiseCount",
									method: "post",
									headers: {
										'Content-Type': 'application/x-www-form-urlencoded'
									},
									params: newQuestion
								}).then(function(response) {
									if(response.data.code != 200) {
										that.question.praiseCount--;
										alert(response.data.message)
									}
								})
							} else {
								//评论点赞
								
								axios.defaults.headers.common["token"] = localStorage.getItem("token");
								var newComment = {
									"id":id,
									"praiseCount": count+1
								}
								axios({
									url: "http://localhost:9095/user/questions/addCommentPraiseCount",
									method: "post",
									headers: {
										'Content-Type': 'application/x-www-form-urlencoded'
									},
									params: newComment
								}).then(function(response) {
									if(response.data.code == 200) {
										that.comments.forEach(item =>{
											if(item.id==id){
											that.$set(item,'praiseCount',parseInt(count)+1)
											}
										})
									}
								})
							}
						} else {
							lrFun();
							return;
						}

					},
					//采纳按钮隐藏显示
					moveOut:function(index){
						this.$set(this.buttons,index,!this.buttons[index])
					},
					moveOver:function(index){
						this.$set(this.buttons,index,!this.buttons[index])
					},
					//设置最佳评论
					makeBestComment:function(obj){
						var result = this.checkLogin();
						if(result){
							axios.defaults.headers.common["token"] = localStorage.getItem("token");
							axios({
								url: "http://localhost:9095/user/questions/getBestResult",
								method: "post",
								headers: {
								'Content-Type': 'application/x-www-form-urlencoded'
								},
								params: obj
							}).then(function(response) {
								if(response.data.code == 200) {
									location.reload();								
								}
							})
						}else{
							lrFun();
							return;
						}
						
					}
				},
				filters: {
					dateFrm: function(el) {
						return moment(el).format("YYYY-MM-DD HH:mm:ss");
					}
				}
			})
		</script>
		
		<!-- 公共底引入 -->
		<footer id="footer">
			<section class="container">
				<div class="">
					<h4 class="hLh30">
				<span class="fsize18 f-fM c-999">友情链接</span>
			</h4>
					<ul class="of flink-list">
						<li>
							<a href="http://www.xyqhit.com" title="三阳科技" target="_blank">三阳科技</a>
						</li>
					</ul>
					<div class="clear"></div>
				</div>
				<div class="b-foot">
					<section class="fl col-7">
						<section class="mr20">
							<section class="b-f-link">
								<a href="/front/helpCenter?id=193" title="关于我们" target="_blank">关于我们</a>|
								<a href="/front/helpCenter?id=194" title="联系我们" target="_blank">联系我们</a>|
								<a href="#" title="成功案例" target="_blank">成功案例</a>|
								<a href="/front/helpCenter" title="帮助中心" target="_blank">帮助中心</a>|
								<span>服务热线：400-006-5079</span> <span>Email：xiejinlong@inxedu.com</span>
							</section>
							<section class="b-f-link mt10">
								<span>©2010-2015 INXEDU有限公司 版权所有 京ICP备15017521号</span>
							</section>
						</section>
					</section>
					<aside class="fl col-3 tac mt15">
						<section class="gf-tx">
							<span><img src="../static/inxweb/img/wx-icon.png" alt=""></span>
							<div class="gf-tx-ewm">
								<img src="" alt="">
							</div>
						</section>
						<section class="gf-tx">
							<span><img src="../static/inxweb/img/wb-icon.png" alt=""></span>
							<div class="gf-tx-ewm">
								<img src="" alt="">
							</div>
						</section>
					</aside>
					<div class="clear"></div>
				</div>
			</section>
		</footer>
		<div class="r-fixed-wrap">
			<ul class="r-fixed-ul">
				<li id="goTopBtn" class="undis">
					<a href="javascript: void(0)" title="返回顶部" class="bg-orange">
						<em class="r-f-icon-3">&nbsp;</em><span>返回顶部</span>
					</a>
				</li>
				<li class="foot-zixun">
					<a href="" title="在线咨询" class="bg-orange">
						<em class="r-f-icon-1">&nbsp;</em><span>在线咨询</span>
					</a>
				</li>
				<li class="foot-zixun">
					<a href="" title="扫描关注" class="bg-orange">
						<em class="r-f-icon-2">&nbsp;</em><span>扫描关注</span>
					</a>
				</li>
			</ul>
		</div>
		<!-- 公共底引入 -->
		</div>

		<!-- 统计代码 -->
	</body>

</html>